package main

import (
	"fmt"
	"math/bits"
)

// 暴力破解
func bruteForce(s string) (newS string){
		byteS := []byte(s)
		var a []int
		a = []int {1, 2, 3}
		//newSlice :=  make([]byte, len(s))
		fmt.Println(byteS, a)
		return string(byteS)
}

func readBinaryWatch(turnedOn int) (ans []string) {
	for h := uint8(0); h < 12; h++ {
		for m := uint8(0); m < 60; m++ {
			if bits.OnesCount8(h)+bits.OnesCount8(m) == turnedOn {
				ans = append(ans, fmt.Sprintf("%d:%02d", h, m))
			}
		}
	}
	return
}



func main() {
	var s string = "1Ad黄"
	s = bruteForce(s)
	readBinaryWatch(4)

	fmt.Println(s)
}
